package com.applet.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author “XuShao”
 * @date 2024/12/19 18:35
 * @description
 */
@Data
@Schema(title = "用户信息DTO")
public class UserInfoDTO {

    @NotBlank(message = "请输入姓名")
    private String name;//姓名

    @NotNull(message = "请选择性别")
    private Short gender;//性别，0，男，1，女

    @NotBlank(message = "请选择班级")
    private String class1; // 班级

    @NotBlank(message = "请选择班级")
    @Size(min = 10, max = 10, message = "请输入正确的学号")
    private String studentNumber; // 学号

    @NotBlank(message = "手机号码不能为空")
    @Size(min = 11, max = 11, message = "手机号只能为11位")
    @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")
    private String phone;//注册电话

    @NotBlank(message = "活动图片不能为空")
    private String image;
}
